package com.wh.wisdomsite.xbox.st.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.wh.wisdomsite.xbox.ba.entity.CommonFile;

import java.io.Serializable;

/**
 * 创库模块-采购附件表（中间表）
 * @version V1.0
 * @author: 杨世强
 * @Package com.wh.wisdomsite.xbox.st.entity
 * @date 2018-12-24 11:32
 * @Copyright 企业版权所有
 * @Company 贵州万华科技有限公司Copyright (c) 2018
 */
@TableName("st_purchaseFile")
public class PurchaseFile extends Model<PurchaseFile> {
    /**
     * 采购附件ID
     */
    @TableId(type = IdType.UUID)
    private String pfId;

    /**
     * 采购申请ID
     */
    @TableField("purId")
    private String purId;

    /**
     * 附件ID
     */
    @TableField("fileId")
    private String fileId;

    /**
     * 关联的附件表
     */
    @TableField(exist = false)
    private CommonFile commonFile;

    public String getPfId() {
        return pfId;
    }

    public void setPfId(String pfId) {
        this.pfId = pfId;
    }

    public String getPurId() {
        return purId;
    }

    public void setPurId(String purId) {
        this.purId = purId;
    }

    public String getFileId() {
        return fileId;
    }

    public void setFileId(String fileId) {
        this.fileId = fileId;
    }

    @Override
    protected Serializable pkVal() {
        return this.pfId;
    }

    public CommonFile getCommonFile() {
        return commonFile;
    }

    public void setCommonFile(CommonFile commonFile) {
        this.commonFile = commonFile;
    }
}
